<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />

	<title>prod_type_insert.jsp</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/base.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/base_orange.css" />

</head>

<body>
	<html:form action="/prod_type">
		<table class="title1">
			<tr>
				<td class="title1_td1">
					商品类型 - 新建
				</td>
				<td class="title1_td2">
					<input class="button_2zi" type="submit" value="保 存"
						onclick="appendUrl('?method=insertProdTypeDo');" />
					<input class="button_2zi" type="reset" value="撤 销" />
					<input class="button_2zi" type="button" value="返 回"
						onclick="history.back();" />
				</td>
			</tr>
		</table>
		<table class="table1">
			<tr>
				<td class="td30">
					商品类型
				</td>
				<td class="td70">
					<html:text property="name"></html:text>
				</td>
			</tr>
			<tr>
				<td class="td30">
					上级分类
				</td>
				<td class="td70">
					<select name="parentIdStr">
						<option value="">无</option>
						<c:forEach var="prodTypeForm2" items="${prodTypeFormList}">
							<option value="${prodTypeForm2.id},${prodTypeForm2.topParentId}">${prodTypeForm2.name}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td class="td30">
					计量单位
				</td>
				<td class="td70">
					<html:text property="unit"></html:text>
				</td>
			</tr>
		</table>
	</html:form>
</body>
</html:html>
